#ifndef QUESTIONITEM_H
#define QUESTIONITEM_H

#include <QWidget>

namespace Ui {
class CQuestionItem;
}

class CQuestionItem : public QWidget
{
    Q_OBJECT

public:
    explicit CQuestionItem(QWidget *parent = nullptr);
    ~CQuestionItem();

    void fillText(int idx,QString text);
    void setHeadIcon(QString iconPath);
signals:
    void sigItemSizeChanged(int width,int height);
protected:
    virtual void paintEvent(QPaintEvent *event);
    virtual void resizeEvent(QResizeEvent *event);
private:
    Ui::CQuestionItem *ui;
};

#endif // QUESTIONITEM_H
